package com.qf.serevice.Impl;

import com.qf.entity.Patient;
import com.qf.mapper.PatientInfoMapper;
import com.qf.pojo.BaseResult;
import com.qf.serevice.PatientInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Package: com.qf.serevice.Impl
 * @ClassName: PatientInfoService
 * @Author: 王旭博
 * @CreateTime: 2021/10/29 14:25
 * @Description :
 */
@Service
public class PatientInfoServiceImpl implements PatientInfoService {

    @Resource
    PatientInfoMapper patientInfoMapper;

    @Override
    public BaseResult findAllPatientInfo() {
        List<Patient> allPatientInfo = patientInfoMapper.findAllPatientInfo();
        BaseResult baseResult = new BaseResult();
        baseResult.setData(allPatientInfo);
        return baseResult;
    }
}
